BUCK 7 Click
BUCK 7 Click demo application is developed using the NECTO Studio, ensuring compatibility with mikroSDK's open-source libraries and tools. Designed for plug-and-play implementation and testing, the demo is fully compatible with all development, starter, and mikromedia boards featuring a mikroBUS™ socket.
Click Library
- Author : MikroE Team
- Date : dec 2019.
- Type : SPI type
Software Support
Example Description
This demo application controls the voltage at the output using the BUCK 7 Click.
Example Libraries
- MikroSDK.Board
- MikroSDK.Log
- Click.BUCK7
Example Key Functions
- buck7_cfg_setup Config Object Initialization function.
void buck7_cfg_setup(buck7_cfg_t *cfg)
Config Object Initialization function.
Click configuration structure definition.
Definition buck7.h:158
- buck7_init Initialization function.
BUCK7_RETVAL buck7_init(buck7_t *ctx, buck7_cfg_t *cfg)
Initialization function.
Click ctx object definition.
Definition buck7.h:139
- buck7_default_cfg Click Default Configuration function.
void buck7_default_cfg(buck7_t *ctx)
Click Default Configuration function.
- buck7_set_output_voltage Function for settings output voltage.
void buck7_set_output_voltage(buck7_t *ctx, uint16_t voltage)
Function for settings output voltage.
- buck7_enable Function for enable chip.
void buck7_enable(buck7_t *ctx)
Function for enable chip.
- buck7_set_mode Function for settings chip mode.
void buck7_set_mode(buck7_t *ctx, uint8_t mode)
Function for settings chip mode.
Application Init
Initializes Driver init, reset chip, enable chip and set mode
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
}
#define BUCK7_MAP_MIKROBUS(cfg, mikrobus)
Definition buck7.h:67
#define BUCK7_MODE_PWM
Definition buck7.h:92
void application_init(void)
Definition main.c:33
Application Task
Sets output voltage to 5V, 10V, 15V, 20V, 25V every 3 seconds. It is necessary to set the input voltage on 2.7V + maximum output voltage.
{
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
Delay_ms ( 1000 );
}
#define BUCK7_OUT_VOLTAGE_5V
Definition buck7.h:100
#define BUCK7_OUT_VOLTAGE_10V
Definition buck7.h:105
#define BUCK7_OUT_VOLTAGE_25V
Definition buck7.h:120
#define BUCK7_OUT_VOLTAGE_20V
Definition buck7.h:115
#define BUCK7_OUT_VOLTAGE_15V
Definition buck7.h:110
void application_task()
Definition main.c:61
Application Output
This Click board can be interfaced and monitored in two ways:
- Application Output - Use the "Application Output" window in Debug mode for real-time data monitoring. Set it up properly by following this tutorial.
- UART Terminal - Monitor data via the UART Terminal using a USB to UART converter. For detailed instructions, check out this tutorial.
Additional Notes and Information
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.